<?php defined('_JEXEC') or die(); ?>
<table>
   <tr>
     <td width = "200">
       <?php echo _JSHOP_ACCOUNT_HOLDER;?>
     </td>
     <td>
       <input type = "text" class = "inputbox" name = "params[pm_debit][acc_holder]" id="params_pm_debit_acc_holder" value="<?php print $params['acc_holder']?>"/>
     </td>
   </tr>
   <tr>
     <td>
       <?php echo _JSHOP_ACCOUNT_NUMBER?>
     </td>
     <td>
       <input type = "text" class = "inputbox" name = "params[pm_debit][acc_number]" id = "params_pm_debit_acc_number" value="<?php print $params['acc_number']?>"/>
     </td>
   </tr>
   <tr>
     <td>
       <?php echo _JSHOP_BIC?>
     </td>
     <td>
       <input type = "text" class = "inputbox" name = "params[pm_debit][bank_bic]" id = "params_pm_debit_bank_bic" value="<?php print $params['bank_bic']?>"/>
     </td>
   </tr>
   <tr>
     <td>
       <?php echo _JSHOP_BANK?>
     </td>
     <td>
       <input type = "text" class = "inputbox" name = "params[pm_debit][bank]" id = "params_pm_debit_bank" value="<?php print $params['bank']?>"/>
     </td>
   </tr>
 </table>
 <script type = "text/javascript">
function check_pm_debit(){
var ar_focus = new Array();
var error = 0;
unhighlightField('payment_form');
if (isEmpty($F_("params_pm_debit_acc_holder"))){
    ar_focus[ar_focus.length] = "params_pm_debit_acc_holder";
    error = 1;
}
if (isEmpty($F_("params_pm_debit_acc_number"))){
    ar_focus[ar_focus.length] = "params_pm_debit_acc_number";
    error = 1;
}
if (!isInt_5_8($F_("params_pm_debit_bank_bic"))){
    ar_focus[ar_focus.length] = "params_pm_debit_bank_bic";
    error = 1;
}
if (isEmpty($F_("params_pm_debit_bank"))){
    ar_focus[ar_focus.length] = "params_pm_debit_bank";
    error = 1;
}
if (error){
    $_(ar_focus[0]).focus();
    for (var i = 0; i<ar_focus.length; i++ ){
       highlightField(ar_focus[i]);
    }
    return false;
}
jQuery('#payment_form').submit();
}
 </script>